package com.yupi.yuoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 分数（排行榜）
 */
@TableName(value = "scores")
@Data
public class Score implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("game_id")
    private Long gameId;

    @TableField("score")
    private Long score;

    @TableField("achieved_at")
    private Date achievedAt;

    @TableField("created_at")
    private Date createdAt;

    @TableField("metadata_json")
    private String metadataJson;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}

